import { createStore } from "vuex";

const store = createStore({
  state: {
    searchResult: [],
    // 存放登录的用户信息
    userInfo: {},
  },
  mutations: {
    setSearchResult(state, result) {
      state.searchResult = result;
    },
  },
});

export default store;